package my.interview;

import java.util.Scanner;

/**
 * @DESCRIPTION:
 * @USER: shg
 * @DATE: 2022/12/20 19:52
 */
public class HJ1 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String next = scanner.nextLine();
        String[] s = next.split(" ");
        String str = s[s.length-1];
        System.out.println(str.length());
    }
}
